﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace Project.Net.Application
{
    /// <summary>
    /// 
    /// </summary>
    public interface ITokenValidator
    {

        /// <summary>
        /// 验证给定的令牌并返回声明主体
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        ClaimsPrincipal ValidateToken(string token);
    }
}
